/*
 * @Author: jiu yin
 * @Date: 2025-08-19 11:38:34
 * @LastEditTime: 2025-08-21 15:18:11
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \one-half-vue3-2025-3-7\src\router\routerArr.ts
 */
import Layout from "@/layout/index.vue";

const routerArr: any[] = [
   {
      path: "/home",
      meta: { title: "首页", icon: "EditPen" },
      component: Layout,
      hidden: false,
      children: [
         {
            path: "index",
            meta: { title: "首页1", icon: "EditPen" },
            component: () => import("@/views/home/index.vue"),
         },
         {
            path: "index",
            hidden: true,
            meta: { title: "首页你马上", icon: "EditPen" },
            component: () => import("@/views/home/index.vue"),
         },
      ],
   },
   {
      path: "/asdsad",
      meta: { title: "首页2312313", icon: "EditPen" },
      component: Layout,
      hidden: true,
      children: [
         {
            path: "index",
            meta: { title: "首页首页2312313", icon: "EditPen" },
            component: () => import("@/views/home/index.vue"),
         },
      ],
   },
   {
      path: "/test1",
      meta: { title: "测试1", icon: "EditPen" },
      component: Layout,
      children: [
         {
            path: "test1",
            meta: { title: "测试1", icon: "EditPen" },
            component: () => import("@/views/test1/index.vue"),
         },
         {
            path: "test2",
            meta: { title: "测试2", icon: "EditPen" },
            component: () => import("@/views/test2/index.vue"),
         },
      ],
   },
   {
      path: "/test3",
      meta: { title: "测试3", icon: "EditPen" },
      component: Layout,
      children: [
         {
            path: "test31",
            meta: { title: "test31", icon: "EditPen" },
            component: () => import("@/views/test3/index.vue"),
         },
         {
            path: "test32",
            meta: { title: "test32", icon: "EditPen" },
            component: () => import("@/views/test32/index.vue"),
            children: [
               {
                  path: "index",
                  name: "test321",
                  meta: { title: "test321", icon: "EditPen" },
                  component: () => import("@/views/test321/index.vue"),
               },
            ],
         },
      ],
   },
];

export default routerArr;
